import express from 'express'
const router = express.Router()
router.get('/json', async (req, res, next) => {
    res.json({msg:'respond with a resource',data:{id:1,name:'aaa'}});
  });
router.get('/html',async (req, res, next) => {
    res.send("<h1>hello world!</h1>")
})
export default router
